package descentFly.away3D4.action
{
	import away3d.containers.ObjectContainer3D;
	
	public class df_OPAction extends df_action {
		private var _startMatrix	: Array;
		public function df_OPAction(a_options:Object, a_model:ObjectContainer3D) {
			super(a_options, a_model);
		}
		
		override protected function initObjects(a_objects: Object): void {
			super.initObjects(a_objects);
			initStartMatrix();
		}
		
		protected function get originMatrix(): Array {
			return _startMatrix;
		}
		
		protected function initStartMatrix(): void {
			_startMatrix = new Array();
			objects.forEach(function (object: ObjectContainer3D, i: int, arr: Array): void {
				_startMatrix[i] = object.transform.clone();
			});
		}
	}
}